package com.tcm.job.job;

import com.tcm.job.api.service.OrderSettlementService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.Reference;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class OrderSettlementByMonthQuartz implements BaseTaskJob {

    @DubboReference(version = "0.0.1-alpha", check = false, timeout = 3000)
    private OrderSettlementService orderSettlementService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        orderSettlementService.settlementByMonth();
    }
}
